<?php

namespace App\Http\Controllers\Web\V1;

use App\Http\Controllers\Controller;
use App\Models\Setting;
use Dingo\Api\Http\Response;
use Dingo\Api\Transformer\Factory as TransformerFactory;

class HelpController extends Controller
{
    /**
     * 技术帮助
     *
     * @return Response
     */
    public function index()
    {
        $technicalHelp = Setting::where('type', array_keys(Setting::SETTINGS)[5])->get(['type', 'value']);

        return $this->response->item($technicalHelp, TransformerFactory::class);
    }
}
